home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 36 / dvqmlfix.zip / READ.ME < prev   
Text File  |  1988-10-05  |  7KB  |  164 lines

  1.  
  2.  
  3.                                                      10/5/88
  4.  
  5.  
  6.       A Fix for Qmail Door Problems Peculiar to Multi-Node, DESQview Systems
  7.       ----------------------------------------------------------------------
  8.  
  9.       **  By Jack Kilday, Sysop, The Northern Lights, Peaks Island, Maine  **
  10.  
  11.  
  12.         Installation of Qmail Door v2.22 proved to be more of a challenge than
  13.     I had bargained for.   But after a day, it's done and runing solidly, and
  14.     now with an essential workaround to allow coexistence with DESQview on
  15.     my '386 system.
  16.  
  17.         THE PROBLEMS: normal operations until the end of a caller's mail
  18.     packet, then, regardless of which node used, a lockup of the entire system
  19.     frequently occurs.   Sometimes the lockups affect the correct exiting of
  20.     DSZ and DSZ seizes up.  At other times DSZ exits OK but the Qmail Door
  21.     halts after reloading and displaying your ID, serial number, and number
  22.     of conferences supported by the door version.  And rarely, but on occasion
  23.     the transition from end of transfer back to the door works.  This is
  24.     my experience on a '386 running DOS 3.2, DESQview 2.0, and QEMM 4.0.
  25.     The failures occur with equal frequency on either node.  It makes no
  26.     difference whether or not the alternate node is active at the time.
  27.  
  28.         The culprit: QWIKXFER.BAT
  29.  
  30.    This batch file is dynamically created by the door and lives only
  31.    long enough to affect the ARCing and DSZing of a mail packet.  Two
  32.    separate problems occur as a result of the code contained in this batch
  33.    file:
  34.  
  35.       1. ECHO commands using redirection to comm ports -  DOS has never
  36.          implemented *ANYTHING* touching on communications (using modems)
  37.          with the comm ports correctly.   And this is another failure as
  38.          bad and faulty as the CTTY implementation.  The problems are
  39.          exacerbated under DESQview (and might occur under Taskview or
  40.          DoubleDOS, as well).   When these redirected ECHOs were eliminated,
  41.          DSZ never failed again to exit properly on my system.
  42.  
  43.       2. CLS commands in QWIKXFER.BAT apparently disrupt the correspondence
  44.          DESQview maintains between a shadow buffer and the real screen buffer.
  45.          Recent versions of QuickBASIC unfortunately use direct screen writes
  46.          which in part may be responsible for the full system lockup that
  47.          frequently occurs when the Qmail Door "comes back" after a transfer.
  48.          When these CLS's are eliminated, QWIKMAIL.EXE never fails to reload
  49.          on my system.  (Actually, the biggest culprit here is the version of
  50.          of QuickBASIC in which the Qmail Door was written.  There has not
  51.          been a release adequate for networks and communications environments
  52.          since QB v1.02 -- which is why PCBoard 14.0 still uses a "modified"
  53.          v1.02 compiler).
  54.  
  55.    An example of a dynamically created QWIKXFER.BAT is shown on the page 3.
  56.  
  57.    How can we fix this little beasty on the fly, after being created but before
  58.    being executed?  Enter a small QuickBASIC (v1.02, of course!) program called
  59.    DVQMLFIX.EXE.  I have included the source in this archive.
  60.  
  61.                                                 10/5/88
  62.                                                 Page 2
  63.  
  64.  
  65.    Another program is also needed.  As a replacement for redirected
  66.    ECHO statements, I offer ECHO_R.  This is a relatively old utility from
  67.    a set of comm-port-aware batch file commands for a non-CTTY DOORs
  68.    environment.  It's source,  docs, and original .COM file are included
  69.    in ECHO_R.ARC contained within this archive.  But specfically, there are
  70.    2 substitutes for a redirected ECHO command to be used, one for COM1
  71.    and one for COM2, ECHO_R1.COM and ECHO_R2.COM respectively.
  72.  
  73.    The FIX involves taking the following steps:
  74.         1. Place DVQMLFIX.EXE, ECHO_R1.COM, and ECHO_R2.COM in a
  75.            directory included in your PATH.
  76.         2. Place in each of your QWKMAIL door batch files (that are in
  77.            the PCB and PCB2 directories - nodes 1 and 2) the statement:
  78.            DVQMLFIX as shown below.
  79.  
  80.              .
  81.              .
  82.          IF NOT EXIST QWIKXFER.BAT GOTO DONE  <---- Existing line
  83.          DVQMLFIX                             <---- New Line
  84.          COMMAND /C QWIKXFER                  <---- Existing line
  85.              .
  86.              .
  87.  
  88.  
  89.    That's all there is to it.  DVQMLFIX will include the appropriate reference
  90.    to ECHO_R1.COM or ECHO_R2.COM depending on which comm port it finds
  91.    referenced in QWIKXFER.BAT.   See the EXHIBIT on the next page for a
  92.    before and after view of the elusive QWIKXFER.BAT.
  93.  
  94.    You won't need this fix after the next release of the Qmail Door.
  95.    I'm sure Sparky will be making the changes needed to keep us DESQview users
  96.    happy.
  97.  
  98.                                         - Jack Kilday
  99.                                           The Northern Lights
  100.                                           PCBoard 14.0/E3
  101.                                           207-766-2467   96/24/1200  24hrs
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.                                                 10/5/88
  111.                                                 Page 3
  112.  
  113.  
  114.                            E X H I B I T
  115.  
  116.  
  117.    Here is a typical QWIKXFER.BAT dynamically created by the Qmail Door:
  118.  
  119. :DOWNLOAD
  120. : 698 , 28
  121. ECHO OFF
  122. CLS
  123. ECHO Command: PKARC A e:\qmaildor\qwork2\NLBBS.QWK e:\qmaildor\qwork2\*.*
  124. PKARC A e:\qmaildor\qwork2\NLBBS.QWK e:\qmaildor\qwork2\*.*
  125. ECHO: > COM1
  126. ECHO      Starting transfer of NLBBS.QWK now. > COM1
  127. CLS
  128. ECHO    User: FRED FERN downloading 0k bytes
  129. ECHO Command: dsz port 1 pB6144 handshake both sz e:\qmaildor\qwork2\NLBBS.QWK
  130. dsz port 1 pB6144 handshake both sz e:\qmaildor\qwork2\NLBBS.QWK
  131. IF ERRORLEVEL 1 GOTO DONE
  132. REN SUCCESS.TMP SUCCESS
  133. :DONE
  134. CLS
  135.  
  136. Here's the same file after DVQMLFIX.EXE has operated on it.  It's ready to
  137. run in a DESQview environment.
  138.  
  139. :DOWNLOAD
  140. : 698 , 28
  141. ECHO OFF
  142. ECHO Command: PKARC A e:\qmaildor\qwork2\NLBBS.QWK e:\qmaildor\qwork2\*.*
  143. PKARC A e:\qmaildor\qwork2\NLBBS.QWK e:\qmaildor\qwork2\*.*
  144. ECHO_R1:
  145. ECHO_R1  
  146.  
  147. ECHO_R1      Starting transfer of NLBBS.QWK now.
  148. ECHO_R1  
  149.  
  150. ECHO    User: FRED FERN downloading 0k bytes
  151. ECHO Command: dsz port 1 pB6144 handshake both sz e:\qmaildor\qwork2\NLBBS.QWK
  152. dsz port 1 pB6144 handshake both sz e:\qmaildor\qwork2\NLBBS.QWK
  153. IF ERRORLEVEL 1 GOTO DONE
  154. REN SUCCESS.TMP SUCCESS
  155. :DONE
  156.  
  157.  
  158. (Note: Depending on how you view this file, you may see two ECHO_R1's above,
  159.  each followed by a blank line.   If you view with an ASCII editor, you'll see
  160.  no blank lines, but that the two ECHO_R1's are each followed by 2 spaces and
  161.  linefeed symbol.  DOS TYPE, LIST, and printing of this file will show as
  162.  2 blank lines.  What you see is *NOT* what you get.)
  163.  
  164.